<?php $this -> load -> view('header'); ?>
<p align="center"><?= anchor('hour_manager/listHours/0', "User totals") ?> - <?= anchor('hour_manager/listHours/1', "Project totals") ?></p>
<?= form_open("hour_manager/listHours/$type") ?>
<p style="text-align: center"><input type="date" name="start" value="<?= date("Y-m-d", $start); ?>" /> - <input type="date" name="end" value="<?= date("Y-m-d", $end); ?>" /><br />
<input type="submit" value="Load!" style="width: 200px;" /></p>
<h2>Total hours within selected dates</h2>
<?= $statistics_table ?>
<?= form_close(); ?>
<h2>Chart</h2>
<div style="text-align: center"><?= img("hour_manager/listHoursGraph/$start/$end/$type") ?></div>
<?php $this -> load -> view('footer'); ?>